
//---------------------------------------------------------------------------
#include <windows.h>
#include "pg2_engine.h"
#include "test_game.h"
//---------------------------------------------------------------------------
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, 
					LPSTR lpszCmdLine, int nCmdShow)
{
	// init engine
	pg2::Engine kEngine(hInstance);
	
	if( !kEngine.init() )
	{
		return 1;
	}

	// init game
	test::Game* pkGame = new test::Game();
	kEngine.setGame(pkGame);

	// run game
	kEngine.run();

	delete pkGame;
	pkGame = NULL;

	return 0;
}
//---------------------------------------------------------------------------
